package com.ns.attendance.core;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Record {
	private String Verify;
	private String TTime;
	public String getVerify() {
		return Verify;
	}
	public void setVerify(String verify) {
		Verify = verify;
	}
	public String getTTime() {
		return TTime;
	}
	public void setTTime(String tTime) {
		TTime = tTime;
	}
	
	public Date getDateTime() throws ParseException{
		return new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").parse(TTime);
	}
	
	public String getDate(){
		if(TTime != null && !TTime.equals("")){
			return TTime.substring(0,10);
		}
		return null;
	}
}
